	$(document).ready(function() {

/* BEGIN JAVASCRIPT for the header section */
		$('#show_phone').click(function() {
			if ($('#show_phone').attr('checked')) {
				$('#phone').removeClass('hidden');
				$('#change_phone').attr('class', 'change_phone');
			} else {
				$('#phone').attr('class', 'hidden');
				$('#change_phone').attr('class', 'hidden');
			}
		});
		
		$('#show_banner').click(function() {
			if ($('#show_banner').attr('checked')) {
				$('#small_banner').removeClass('hidden');
				$('#change_banner').attr('class', 'change_banner');
			} else {
				$('#small_banner').attr('class', 'hidden');
				$('#change_banner').attr('class', 'hidden');
			}
		});
		
		$('#show_menu').click(function() {
			if ($('#show_menu').attr('checked')) {
				$('#category').removeClass('hidden');
				$('#change_menu').attr('class', 'change_menu');
			} else {
				$('#category').attr('class', 'hidden');
				$('#change_menu').attr('class', 'hidden');
			}
		});
		
		$('#show_greeting').click(function() {
			if ($('#show_greeting').attr('checked')) {
				$('#greeting').removeClass('hidden');
				$('#change_greeting').attr('class', 'change_greeting');
			} else {
				$('#greeting').attr('class', 'hidden');
				$('#change_greeting').attr('class', 'hidden');
			}
		});
		
		$('#show_logo').click(function() {
			if ($('#show_logo').attr('checked')) {
				$('#logo').removeClass('hidden');
			} else {
				$('#logo').attr('class', 'hidden');
			}
		});

		$('#new_greeting').live({
			keyup: function() {
				var msg = $('#new_greeting').val();
				if ($.trim(msg) == '') {
					$('#greeting').html('<?php echo $text_greeting; ?>');
				} else {
					$('#greeting').html(msg);
				}
			},
			focus: function() {
				$('#new_greeting').select();
			}
		});

		$('#banner_msg').live({
			keyup: function() {
				var msg = $('#banner_msg').val();
				if ($.trim(msg) == '') {
					$('#banner_msg').html('<?php echo $text_small_banner; ?>');
				} else {
					var btext = $('#banner_msg').val();
					$('#banner_text').html(btext);
				}
			},
			focus: function() {
				$('#banner_msg').select();
			}
		});
		
		$('#body_background').live({
			keyup: function() {
				var bgcolor = $('#body_background').val();
				$('#header_box').attr('style', 'background-color: ' + bgcolor + ';');
				$('#tbanner_box').attr('style', 'background-color: ' + bgcolor + ';');
				$('#infobar_bar').attr('style', 'background-color: ' + bgcolor + ';');
				$('#products_box').attr('style', 'background-color: ' + bgcolor + ';');
				$('#bbanner_banner').attr('style', 'background-color: ' + bgcolor + ';');
			},
			focus: function() {
				$('#body_background').select();
			}
		});
		
		$('#logo_height').live({
			keyup: function() {
				var height = $('#logo_height').val();
				var pheight = height / 2;
				$('#logo').attr('style', 'height: ' + height + 'px;');
				$('#phone').attr('style', 'margin-top: ' + pheight + 'px;');
			},
			focus: function() {
				$('#logo_height').select();
			}
		});
		
		$('#banner_bg').live({
			keyup: function() {
				var bgcolor = $('#banner_bg').val();
				$('#small_banner').attr('style', 'background-color: ' + bgcolor + ';');
			},
			focus: function() {
				$('#banner_bg').select();
			}
		});
		
		$('#banner_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#banner_fs').val());
				var curfontsize = parseInt($('#banner_text').css('fontSize'));
				var padtop = parseInt($('#banner_text').css('padding-top'));
				var font = $('#banner_text').css('font-family');
				var fontcolor = $('#banner_text').css('color');
				var fweight = $('#banner_text').css('font-weight');
				var newpad = 0;
				var number = 0;
				if (fontsize > curfontsize) {
					number = (fontsize - curfontsize) / 3;
					newpad = padtop - Math.round(number);
				} else {
					number = (curfontsize - fontsize) / 3;
					newpad = padtop + Math.round(number);
				}
				$('#banner_text').attr('style', 'font-weight: ' + fweight + '; font-size: ' + fontsize + 'px; font-family: ' + font + '; color: ' + fontcolor + '; padding-top: ' + newpad + 'px;');
			},
			focus: function() {
				$('#banner_fs').select();
			}
		});
		
		$('#banner_ff').change(function() {
			var font = $('#banner_ff').val();
			var fontsize = parseInt($('#banner_fs').val());
			var fontcolor = $('#banner_fc').val();
			var fweight = $('#banner_text').css('font-weight');
			$('#banner_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
		});
		
		$('#banner_fw').change(function() {
			var font = $('#banner_ff').val();
			var fontsize = parseInt($('#banner_fs').val());
			var fontcolor = $('#banner_fc').val();
			var fweight = $('#banner_fw').val();
			$('#banner_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
		});
		
		$('#banner_fc').live({
			keyup: function() {
				var font = $('#banner_ff').val();
				var fontsize = parseInt($('#banner_fs').val());
				var fontcolor = $('#banner_fc').val();
				var fweight = $('#banner_text').css('font-weight');
				$('#banner_text').attr('style', 'font-weight: ' + fweight + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px; font-family: ' + font + ';');
			},
			focus: function() {
				$('#banner_fc').select();
			}
		});
		
		$('#greeting_fc').live({
			keyup: function() {
				var fontcolor = $('#greeting_fc').val();
				var fontsize = parseInt($('#greeting').css('font-size'));
				var font = $('#greeting').css('font-family');
				var fweight = $('#greeting').css('font-weight');
				$('#greeting').attr('style', 'font-weight: ' + fweight + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px; font-family: ' + font + ';');
			},
			focus: function() {
				$('#greeting_fc').select();
			}
		});
		
		$('#greeting_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#greeting_fs').val());
				var font = $('#greeting').css('font-family');
				var fontcolor = $('#greeting').css('color');
				var fweight = $('#greeting').css('font-weight');
				$('#greeting').attr('style', 'font-weight: ' + fweight + '; font-size: ' + fontsize + 'px; font-family: ' + font + '; color: ' + fontcolor + ';');
			},
			focus: function() {
				$('#greeting_fs').select();
			}
		});
		
		$('#greeting_ff').change(function() {
			var font = $('#greeting_ff').val();
			if (font != 'none') {
				var fontcolor = $('#greeting').css('color');
				var fweight = $('#greeting').css('font-weight');
				var fontsize = parseInt($('#greeting').css('font-size'));
				$('#greeting').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
			}
		});
		
		$('#greeting_fw').change(function() {
			var font = $('#greeting').css('font-family');
			var fontcolor = $('#greeting').css('color');
			var fweight = $('#greeting_fw').val();
			var fontsize = parseInt($('#greeting').css('font-size'));
			$('#greeting').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
		});

		$('#phone_fc').live({
			keyup: function() {
				var fontcolor = $('#phone_fc').val();
				var fontsize = parseInt($('#phone').css('font-size'));
				var font = $('#phone').css('font-family');
				var fweight = $('#phone').css('font-weight');
				$('#phone').attr('style', 'font-weight: ' + fweight + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px; font-family: ' + font + ';');
			},
			focus: function() {
				$('#phone_fc').select();
			}
		});
		
		$('#phone_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#phone_fs').val());
				var font = $('#phone').css('font-family');
				var fontcolor = $('#phone').css('color');
				var fweight = $('#phone').css('font-weight');
				$('#phone').attr('style', 'font-weight: ' + fweight + '; font-size: ' + fontsize + 'px; font-family: ' + font + '; color: ' + fontcolor + ';');
			},
			focus: function() {
				$('#phone_fs').select();
			}
		});
		
		$('#phone_ff').change(function() {
			var font = $('#phone_ff').val();
			if (font != 'none') {
				var fontcolor = $('#phone').css('color');
				var fweight = $('#phone').css('font-weight');
				var fontsize = parseInt($('#phone').css('font-size'));
				$('#phone').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
			}
		});
		
		$('#phone_fw').change(function() {
			var font = $('#phone').css('font-family');
			var fontcolor = $('#phone').css('color');
			var fweight = $('#phone_fw').val();
			var fontsize = parseInt($('#phone').css('font-size'));
			$('#phone').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
		});

		$('#menu_bg').live({
			keyup: function() {
				var menucolor = $('#menu_bg').val();
				$('#category').attr('style', 'background-color: ' + menucolor + ';');
			},
			focus: function() {
				$('#menu_bg').select();
			}
		});
		
		$('#menu_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#menu_fs').val());
				var fontcolor = $('#category > ul > li > a').css('color');
				var font = $('#category > ul > li > a').css('font-family');
				var fweight = $('#category > ul > li > a').css('font-weight');
				var ptop = parseInt($('#category > ul > li > a').css('padding-top'));
				var pbot = parseInt($('#category > ul > li > a').css('padding-bottom'));
				var prig = parseInt($('#category > ul > li > a').css('padding-right'));
				var plef = parseInt($('#category > ul > li > a').css('padding-left'));
				$('#category > ul > li > a').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px; padding-top: ' + ptop + 'px; padding-bottom: ' + pbot + 'px; padding-right: ' + prig + 'px; padding-left: ' + plef + 'px;');
			},
			focus: function() {
				$('#menu_fs').select();
			}
		});
		
		$('#menu_ff').change(function() {
			var font = $('#menu_ff').val();
			var fweight = $('#category > ul > li > a').css('font-weight');
			var fontsize = parseInt($('#category > ul > li > a').css('font-size'));
			var fontcolor = $('#category > ul > li > a').css('color');
			$('#category > ul > li > a').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
		});
		
		$('#menu_fw').change(function() {
			var font = $('#category > ul > li > a').css('font-family');
			var fweight = $('#menu_fw').val();
			var fontsize = parseInt($('#category > ul > li > a').css('font-size'));
			var fontcolor = $('#category > ul > li > a').css('color');
			$('#category > ul > li > a').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + fontsize + 'px; color: ' + fontcolor + ';');
		});
		
		$('#menu_fc').live({
			keyup: function() {
				var fontcolor = $('#menu_fc').val();
				var fweight = $('#category > ul > li > a').css('font-weight');
				var font = $('#category > ul > li > a').css('font-family');
				var fontsize = parseInt($('#category > ul > li > a').css('font-size'));
				$('#category > ul > li > a').attr('style', 'font-weight: ' + fweight + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px; font-family: ' + font + ';');
			},
			focus: function() {
				$('#menu_fc').select();
			}
		});
/* END JAVASCRIPT for the header section */
		
/* BEGIN JAVASCRIPT for the top banner section */
		$('#show_tbanner').click(function() {
			if ($('#show_tbanner').attr('checked')) {
				$('#change_tbanner').attr('class', 'change_tbanner');
				$('#tbanner_banner').removeClass('hidden');
			} else {
				$('#change_tbanner').attr('class', 'hidden');
				$('#tbanner_banner').attr('class', 'hidden');
			}
		});

		$('#top_banner').focus(function() {
			$('#top_banner').select();
		});
/* END JAVASCRIPT for the top banner section */

/* BEGIN JAVASCRIPT for the information bar section */		
		$('#show_bar').click(function() {
			if ($('#show_bar').attr('checked')) {
				$('#infobar_bar').removeClass('hidden');
				$('#show_category').attr('disabled', false);
				$('#show_custom_msg').attr('disabled', false);
				if ($('#show_category').attr('checked')) {
					$('#change_category').attr('class', 'change_category');
					$('#change_custom').attr('class', 'hidden');
				} else {
					$('#change_category').attr('class', 'hidden');
					$('#change_custom').attr('class', 'change_custom');
				}
			} else {
				$('#show_category').attr('disabled', true);
				$('#show_custom_msg').attr('disabled', true);
				$('#change_category').attr('class', 'hidden');
				$('#change_custom').attr('class', 'hidden');
				$('#infobar_bar').attr('class', 'hidden');
			}
		});
		
		$('#show_category').click(function() {
			if ($('#show_category').attr('checked')) {
				$('#show_custom_msg').attr('checked', false);
				$('#change_custom').attr('class', 'hidden');
				$('#change_category').attr('class', 'change_category');
				$('#infobar_text').text('');
				$('#custom_msg').val('');
			} else {
				$('#show_custom_msg').attr('checked', true);
				$('#change_custom').attr('class', 'change_custom');
				$('#change_category').attr('class', 'hidden');
				$('#select_cat').val('');
				$('#infobar_text').text('');
			}
		});
		
		$('#show_custom_msg').click(function() {
			if ($('#show_custom_msg').attr('checked')) {
				$('#show_category').attr('checked', false);
				$('#change_category').attr('class', 'hidden');
				$('#change_custom').attr('class', 'change_custom');
				$('#infobar_text').text('');
				$('#select_cat').val('');
			} else {
				$('#show_category').attr('checked', true);
				$('#change_category').attr('class', 'change_category');
				$('#change_custom').attr('class', 'hidden');
				$('#infobar_text').text('');
				$('#custom_msg').val('');
			}
		});

		$('#custom_msg').live({
			keyup: function() {
				var msg = $('#custom_msg').val();
				if ($.trim(msg) == '') {
					$('#infobar_text').html('<?php echo $text_custom_msg; ?>');
				} else {
					$('#infobar_text').html(msg);
				}
			},
			focus: function() {
				$('#custom_msg').select();
			}
		});
		
		$('#infobar_bg').live({
			keyup: function() {
				var bgcolor = $('#infobar_bg').val();
				$('#infobar_bar').attr('style', 'background-color: ' + bgcolor + ';');
			},
			focus: function() {
				$('#infobar_bg').select();
			}
		});
		
		$('#infobar_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#infobar_fs').val());
				var fontcolor = $('#infobar_text').css('color');
				var font = $('#infobar_text').css('font-family');
				var fweight = $('#infobar_text').css('font-weight');
				var ptop = '';
				if (fontsize < 16) {
					ptop = '12px;';
				} else if (fontsize > 15 && fontsize < 18) {
					ptop = '9px;';
				} else if (fontsize > 17 && fontsize < 21) {
					ptop = '7px;';
				} else if (fontsize > 20 && fontsize < 26) {
					ptop = '5px;';
				} else if (fontsize > 25 && fontsize < 30) {
					ptop = '3px;';
				} else if (fontsize > 29 && fontsize < 36) {
					ptop = '2px;';
				} else if (fontsize > 35 && fontsize < 40) {
					ptop = '1px;';
				} else {
					ptop = '0px;';
				}
				$('#infobar_text').attr('style', 'font-weight: ' + fweight + '; padding-top: ' + ptop + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#infobar_fs').select();
			}
		});
		
		$('#infobar_ff').change(function() {
			var font = $('#infobar_ff').val();
			var fontsize = parseInt($('#infobar_text').css('font-size'));
			var fontcolor = $('#infobar_text').css('color');
			var fweight = $('#infobar_text').css('font-weight');
			var ptop = '';
			if (fontsize < 16) {
				ptop = '12px;';
			} else if (fontsize > 15 && fontsize < 18) {
				ptop = '9px;';
			} else if (fontsize > 17 && fontsize < 21) {
				ptop = '7px;';
			} else if (fontsize > 20 && fontsize < 26) {
				ptop = '5px;';
			} else if (fontsize > 25 && fontsize < 30) {
				ptop = '3px;';
			} else if (fontsize > 29 && fontsize < 36) {
				ptop = '2px;';
			} else if (fontsize > 35 && fontsize < 40) {
				ptop = '1px;';
			} else {
				ptop = '0px;';
			}
			$('#infobar_text').attr('style', 'font-weight: ' + fweight + '; padding-top: ' + ptop + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#infobar_fw').change(function() {
			var font = $('#infobar_text').css('font-family');
			var fontsize = parseInt($('#infobar_text').css('font-size'));
			var fontcolor = $('#infobar_text').css('color');
			var fweight = $('#infobar_fw').val();
			var ptop = '';
			if (fontsize < 16) {
				ptop = '12px;';
			} else if (fontsize > 15 && fontsize < 18) {
				ptop = '9px;';
			} else if (fontsize > 17 && fontsize < 21) {
				ptop = '7px;';
			} else if (fontsize > 20 && fontsize < 26) {
				ptop = '5px;';
			} else if (fontsize > 25 && fontsize < 30) {
				ptop = '3px;';
			} else if (fontsize > 29 && fontsize < 36) {
				ptop = '2px;';
			} else if (fontsize > 35 && fontsize < 40) {
				ptop = '1px;';
			} else {
				ptop = '0px;';
			}
			$('#infobar_text').attr('style', 'font-weight: ' + fweight + '; padding-top: ' + ptop + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#infobar_fc').live({
			keyup: function() {
				var fontcolor = $('#infobar_fc').val();
				var fweight = $('#infobar_text').css('font-weight');
				var font = $('#infobar_text').css('font-family');
				var fontsize = parseInt($('#infobar_text').css('font-size'));
				var ptop = '';
				if (fontsize < 16) {
					ptop = '12px;';
				} else if (fontsize > 15 && fontsize < 18) {
					ptop = '9px;';
				} else if (fontsize > 17 && fontsize < 21) {
					ptop = '7px;';
				} else if (fontsize > 20 && fontsize < 26) {
					ptop = '5px;';
				} else if (fontsize > 25 && fontsize < 30) {
					ptop = '3px;';
				} else if (fontsize > 29 && fontsize < 36) {
					ptop = '2px;';
				} else if (fontsize > 35 && fontsize < 40) {
					ptop = '1px;';
				} else {
					ptop = '0px;';
				}
				$('#infobar_text').attr('style', 'font-weight: ' + fweight + '; padding-top: ' + ptop + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#infobar_fc').select();
			}
		});
/* END JAVASCRIPT for the information bar section */

/* BEGIN JAVASCRIPT for the bottom banner section */
		$('#show_bbanner').click(function() {
			if ($('#show_bbanner').attr('checked')) {
				$('#change_bbanner').removeClass('hidden');
				$('#bbanner_banner').removeClass('hidden');
			} else {
				$('#change_bbanner').attr('class', 'hidden');
				$('#bbanner_banner').attr('class', 'hidden');
			}
		});

		$('#use_image').click(function() {
			if ($('#use_image').attr('checked')) {
				$('#select_image').attr('class', 'select_image');
				$('#bbanner_image').attr('class', 'bbanner_image');
				$('#bbanner_header').attr('class', 'hidden');
				$('#bbanner_middle').attr('class', 'hidden');
				$('#change_bbanner').attr('class', 'hidden');
			} else {
				$('#select_image').attr('class', 'hidden');
				$('#bbanner_image').attr('class', 'hidden');
				$('#bbanner_header').attr('class', 'bbanner_header');
				$('#bbanner_middle').attr('class', 'bbanner_middle');
				$('#change_bbanner').attr('class', 'change_bbanner');
			}
		});
		
		$('#show_contact').click(function() {
			if ($('#show_contact').attr('checked')) {
				$('#bbanner_contact').attr('class', 'bbanner_contact');
			} else {
				$('#bbanner_contact').attr('class', 'hidden');
			}
		});
		
		$('#show_unsubscribe').click(function() {
			if ($('#show_unsubscribe').attr('checked')) {
				$('#bbanner_footer').attr('class', 'bbanner_footer');
			} else {
				$('#bbanner_footer').attr('class', 'hidden');
			}
		});
		
		$('#custom_msg2').live({
			keyup: function() {
				var msg = $('#custom_msg2').val();
				if ($.trim(msg) == '') {
					$('#bbanner_header').html('<?php echo $text_custom_msg2; ?>');
				} else {
					$('#bbanner_header').html(msg);
				}
			},
			focus: function() {
				$('#custom_msg2').select();
			}
		});

		$('#bbanner_bg').live({
			keyup: function() {
				var bgcolor = $('#bbanner_bg').val();
				$('#bbanner_banner').attr('style', 'background-color: ' + bgcolor + ';');
			},
			focus: function() {
				$('#bbanner_bg').select();
			}
		});
		
		$('#bbanner_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#bbanner_fs').val());
				var fontcolor = $('#bbanner_header').css('color');
				var font = $('#bbanner_header').css('font-family');
				var fweight = $('#bbanner_header').css('font-weight');
				$('#bbanner_header').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#bbanner_fs').select();
			}
		});
		
		$('#bbanner_ff').change(function() {
			var font = $('#bbanner_ff').val();
			var fontsize = parseInt($('#bbanner_header').css('font-size'));
			var fontcolor = $('#bbanner_header').css('color');
			var fweight = $('#bbanner_header').css('font-weight');
			$('#bbanner_header').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#bbanner_fw').change(function() {
			var font = $('#bbanner_header').css('font-family');
			var fontsize = parseInt($('#bbanner_header').css('font-size'));
			var fontcolor = $('#bbanner_header').css('color');
			var fweight = $('#bbanner_fw').val();
			$('#bbanner_header').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#bbanner_fc').live({
			keyup: function() {
				var fontcolor = $('#bbanner_fc').val();
				var font = $('#bbanner_header').css('font-family');
				var fontsize = parseInt($('#bbanner_header').css('font-size'));
				var fweight = $('#bbanner_header').css('font-weight');
				$('#bbanner_header').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#bbanner_fc').select();
			}
		});

		$('#bbanner_contact_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#bbanner_contact_fs').val());
				var fontcolor = $('#bbanner_contact').css('color');
				var font = $('#bbanner_contact').css('font-family');
				var fweight = $('#bbanner_contact').css('font-weight');
				$('#bbanner_contact').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#bbanner_contact_fs').select();
			}
		});
		
		$('#bbanner_contact_ff').change(function() {
			var font = $('#bbanner_contact_ff').val();
			var fontsize = parseInt($('#bbanner_contact').css('font-size'));
			var fontcolor = $('#bbanner_contact').css('color');
			var fweight = $('#bbanner_contact').css('font-weight');
			$('#bbanner_contact').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#bbanner_contact_fw').change(function() {
			var font = $('#bbanner_contact').css('font-family');
			var fontsize = parseInt($('#bbanner_contact').css('font-size'));
			var fontcolor = $('#bbanner_contact').css('color');
			var fweight = $('#bbanner_contact_fw').val();
			$('#bbanner_contact').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#bbanner_contact_fc').live({
			keyup: function() {
				var fontcolor = $('#bbanner_contact_fc').val();
				var font = $('#bbanner_contact').css('font-family');
				var fontsize = parseInt($('#bbanner_contact').css('font-size'));
				var fweight = $('#bbanner_contact').css('font-weight');
				$('#bbanner_contact').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#bbanner_contact_fc').select();
			}
		});

		$('#bbanner_unsub_fs').live({
			keyup: function() {
				var fontsize = parseInt($('#bbanner_unsub_fs').val());
				var fontcolor = $('#bbanner_footer').css('color');
				var font = $('#bbanner_footer').css('font-family');
				var fweight = $('#bbanner_footer').css('font-weight');
				$('#bbanner_footer').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#bbanner_unsub_fs').select();
			}
		});
		
		$('#bbanner_unsub_ff').change(function() {
			var font = $('#bbanner_unsub_ff').val();
			var fontsize = parseInt($('#bbanner_footer').css('font-size'));
			var fontcolor = $('#bbanner_footer').css('color');
			var fweight = $('#bbanner_footer').css('font-weight');
			$('#bbanner_footer').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#bbanner_unsub_fw').change(function() {
			var font = $('#bbanner_footer').css('font-family');
			var fontsize = parseInt($('#bbanner_footer').css('font-size'));
			var fontcolor = $('#bbanner_footer').css('color');
			var fweight = $('#bbanner_unsub_fw').val();
			$('#bbanner_footer').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
		});
		
		$('#bbanner_unsub_fc').live({
			keyup: function() {
				var fontcolor = $('#bbanner_unsub_fc').val();
				var font = $('#bbanner_footer').css('font-family');
				var fontsize = parseInt($('#bbanner_footer').css('font-size'));
				var fweight = $('#bbanner_footer').css('font-weight');
				$('#bbanner_footer').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; color: ' + fontcolor + '; font-size: ' + fontsize + 'px;');
			},
			focus: function() {
				$('#bbanner_unsub_fc').select();
			}
		});

/* END JAVASCRIPT for the bottom banner section */

/* BEGIN JAVASCRIPT for the products section */
		$('#row_bg').live({
			keyup: function() {
				var bg = $('#row_bg').val();
				$('#products_box').attr('style', 'background-color: ' + bg + ';');
			},
			focus: function() {
				$('#row_bg').select();
			}
		});
		
		$('#border_color').live({
			keyup: function() {
				var bcolor = $('#border_color').val();
				var bwidth = '';
				if ($('#border_width').val() != '' && parseInt($('#border_width').val() < 1)) {
					$('.product_box_grid').attr('style', 'border: none;');
				} else {
					if ($('#border_width').val() != '') {
						bwidth = parseInt($('#border_width').val());
					} else {
						bwidth = parseInt($('.product_box_grid').css('border-left-width'));
					}
					$('.product_box_grid').attr('style', 'border: ' + bwidth + 'px solid ' + bcolor + ';');
				}
			},
			focus: function() {
				$('#border_color').select();
			}
		});
		
		$('#border_width').live({
			keyup: function() {
				if ($('#border_width').val().length > 0) {
					if (parseInt($('#border_width').val() < 1)) {
						$('.product_box_grid').attr('style', 'border: none;');
					} else {
						var bwidth = parseInt($('#border_width').val());
						var bcolor = '';
						if ($('#border_color').val() != '') {
							bcolor = $('#border_color').val();
						} else {
							bcolor = $('.product_box_grid').css('border-left-color');
						}
						$('.product_box_grid').attr('style', 'border: ' + bwidth + 'px solid ' + bcolor + ';');
					}
				}
			},
			focus: function() {
				$('#border_width').select();
			}
		});
		
		$('#show_price').click(function() {
			if ($('#show_price').attr('checked')) {
				$('#product_price_options').attr('class', 'product_price_options');
				$('#prod1_price').attr('class', 'product_price');
				$('#prod2_price').attr('class', 'product_price');
				$('#prod3_price').attr('class', 'product_price');
				$('#prod4_price').attr('class', 'product_price');
				$('#prod5_price').attr('class', 'product_price');
				$('#prod6_price').attr('class', 'product_price');
				$('#prod7_price').attr('class', 'product_price');
				$('#prod8_price').attr('class', 'product_price');
				$('#prod9_price').attr('class', 'product_price');
				$('#prod10_price').attr('class', 'product_price');
				$('#prod11_price').attr('class', 'product_price');
				$('#prod12_price').attr('class', 'product_price');
				$('#prod13_price').attr('class', 'product_price');
				$('#prod14_price').attr('class', 'product_price');
				$('#prod15_price').attr('class', 'product_price');
				$('#prod16_price').attr('class', 'product_price');
			} else {
				$('#product_price_options').attr('class', 'hidden');
				$('#prod1_price').attr('class', 'hidden');
				$('#prod2_price').attr('class', 'hidden');
				$('#prod3_price').attr('class', 'hidden');
				$('#prod4_price').attr('class', 'hidden');
				$('#prod5_price').attr('class', 'hidden');
				$('#prod6_price').attr('class', 'hidden');
				$('#prod7_price').attr('class', 'hidden');
				$('#prod8_price').attr('class', 'hidden');
				$('#prod9_price').attr('class', 'hidden');
				$('#prod10_price').attr('class', 'hidden');
				$('#prod11_price').attr('class', 'hidden');
				$('#prod12_price').attr('class', 'hidden');
				$('#prod13_price').attr('class', 'hidden');
				$('#prod14_price').attr('class', 'hidden');
				$('#prod15_price').attr('class', 'hidden');
				$('#prod16_price').attr('class', 'hidden');
			}
		});
		
		$('#show_special').click(function() {
			if ($('#show_special').attr('checked')) {
				$('#product_special_options').attr('class', 'product_special_options');
				$('#prod1_special').attr('class', 'product_special');
				$('#prod2_special').attr('class', 'product_special');
				$('#prod3_special').attr('class', 'product_special');
				$('#prod4_special').attr('class', 'product_special');
				$('#prod5_special').attr('class', 'product_special');
				$('#prod6_special').attr('class', 'product_special');
				$('#prod7_special').attr('class', 'product_special');
				$('#prod8_special').attr('class', 'product_special');
				$('#prod9_special').attr('class', 'product_special');
				$('#prod10_special').attr('class', 'product_special');
				$('#prod11_special').attr('class', 'product_special');
				$('#prod12_special').attr('class', 'product_special');
				$('#prod13_special').attr('class', 'product_special');
				$('#prod14_special').attr('class', 'product_special');
				$('#prod15_special').attr('class', 'product_special');
				$('#prod16_special').attr('class', 'product_special');
			} else {
				$('#product_special_options').attr('class', 'hidden');
				$('#prod1_special').attr('class', 'hidden');
				$('#prod2_special').attr('class', 'hidden');
				$('#prod3_special').attr('class', 'hidden');
				$('#prod4_special').attr('class', 'hidden');
				$('#prod5_special').attr('class', 'hidden');
				$('#prod6_special').attr('class', 'hidden');
				$('#prod7_special').attr('class', 'hidden');
				$('#prod8_special').attr('class', 'hidden');
				$('#prod9_special').attr('class', 'hidden');
				$('#prod10_special').attr('class', 'hidden');
				$('#prod11_special').attr('class', 'hidden');
				$('#prod12_special').attr('class', 'hidden');
				$('#prod13_special').attr('class', 'hidden');
				$('#prod14_special').attr('class', 'hidden');
				$('#prod15_special').attr('class', 'hidden');
				$('#prod16_special').attr('class', 'hidden');
			}
		});
		
		$('#show_desc').click(function() {
			if ($('#show_desc').attr('checked')) {
				$('#product_text_options').attr('class', 'product_text_options');
				$('#prod1_text').attr('class', 'product_text');
				$('#prod2_text').attr('class', 'product_text');
				$('#prod3_text').attr('class', 'product_text');
				$('#prod4_text').attr('class', 'product_text');
				$('#prod5_text').attr('class', 'product_text');
				$('#prod6_text').attr('class', 'product_text');
				$('#prod7_text').attr('class', 'product_text');
				$('#prod8_text').attr('class', 'product_text');
				$('#prod9_text').attr('class', 'product_text');
				$('#prod10_text').attr('class', 'product_text');
				$('#prod11_text').attr('class', 'product_text');
				$('#prod12_text').attr('class', 'product_text');
				$('#prod13_text').attr('class', 'product_text');
				$('#prod14_text').attr('class', 'product_text');
				$('#prod15_text').attr('class', 'product_text');
				$('#prod16_text').attr('class', 'product_text');
			} else {
				$('#product_text_options').attr('class', 'hidden');
				$('#prod1_text').attr('class', 'hidden');
				$('#prod2_text').attr('class', 'hidden');
				$('#prod3_text').attr('class', 'hidden');
				$('#prod4_text').attr('class', 'hidden');
				$('#prod5_text').attr('class', 'hidden');
				$('#prod6_text').attr('class', 'hidden');
				$('#prod7_text').attr('class', 'hidden');
				$('#prod8_text').attr('class', 'hidden');
				$('#prod9_text').attr('class', 'hidden');
				$('#prod10_text').attr('class', 'hidden');
				$('#prod11_text').attr('class', 'hidden');
				$('#prod12_text').attr('class', 'hidden');
				$('#prod13_text').attr('class', 'hidden');
				$('#prod14_text').attr('class', 'hidden');
				$('#prod15_text').attr('class', 'hidden');
				$('#prod16_text').attr('class', 'hidden');
			}
		});
		
		$('#prod_name_position').change(function() {
			if ($('#prod_name_position').val() == 'above') {
				$('#prod1_name1').attr('class', 'product_name');
				$('#prod1_name2').attr('class', 'hidden');
				$('#prod2_name1').attr('class', 'product_name');
				$('#prod2_name2').attr('class', 'hidden');
				$('#prod3_name1').attr('class', 'product_name');
				$('#prod3_name2').attr('class', 'hidden');
				$('#prod4_name1').attr('class', 'product_name');
				$('#prod4_name2').attr('class', 'hidden');
				$('#prod5_name1').attr('class', 'product_name');
				$('#prod5_name2').attr('class', 'hidden');
				$('#prod6_name1').attr('class', 'product_name');
				$('#prod6_name2').attr('class', 'hidden');
				$('#prod7_name1').attr('class', 'product_name');
				$('#prod7_name2').attr('class', 'hidden');
				$('#prod8_name1').attr('class', 'product_name');
				$('#prod8_name2').attr('class', 'hidden');
				$('#prod9_name1').attr('class', 'product_name');
				$('#prod9_name2').attr('class', 'hidden');
				$('#prod10_name1').attr('class', 'product_name');
				$('#prod10_name2').attr('class', 'hidden');
				$('#prod11_name1').attr('class', 'product_name');
				$('#prod11_name2').attr('class', 'hidden');
				$('#prod12_name1').attr('class', 'product_name');
				$('#prod12_name2').attr('class', 'hidden');
				$('#prod13_name1').attr('class', 'product_name');
				$('#prod13_name2').attr('class', 'hidden');
				$('#prod14_name1').attr('class', 'product_name');
				$('#prod14_name2').attr('class', 'hidden');
				$('#prod15_name1').attr('class', 'product_name');
				$('#prod15_name2').attr('class', 'hidden');
				$('#prod16_name1').attr('class', 'product_name');
				$('#prod16_name2').attr('class', 'hidden');
			} else {
				$('#prod1_name2').attr('class', 'product_name');
				$('#prod1_name1').attr('class', 'hidden');
				$('#prod2_name2').attr('class', 'product_name');
				$('#prod2_name1').attr('class', 'hidden');
				$('#prod3_name2').attr('class', 'product_name');
				$('#prod3_name1').attr('class', 'hidden');
				$('#prod4_name2').attr('class', 'product_name');
				$('#prod4_name1').attr('class', 'hidden');
				$('#prod5_name2').attr('class', 'product_name');
				$('#prod5_name1').attr('class', 'hidden');
				$('#prod6_name2').attr('class', 'product_name');
				$('#prod6_name1').attr('class', 'hidden');
				$('#prod7_name2').attr('class', 'product_name');
				$('#prod7_name1').attr('class', 'hidden');
				$('#prod8_name2').attr('class', 'product_name');
				$('#prod8_name1').attr('class', 'hidden');
				$('#prod9_name2').attr('class', 'product_name');
				$('#prod9_name1').attr('class', 'hidden');
				$('#prod10_name2').attr('class', 'product_name');
				$('#prod10_name1').attr('class', 'hidden');
				$('#prod11_name2').attr('class', 'product_name');
				$('#prod11_name1').attr('class', 'hidden');
				$('#prod12_name2').attr('class', 'product_name');
				$('#prod12_name1').attr('class', 'hidden');
				$('#prod13_name2').attr('class', 'product_name');
				$('#prod13_name1').attr('class', 'hidden');
				$('#prod14_name2').attr('class', 'product_name');
				$('#prod14_name1').attr('class', 'hidden');
				$('#prod15_name2').attr('class', 'product_name');
				$('#prod15_name1').attr('class', 'hidden');
				$('#prod16_name2').attr('class', 'product_name');
				$('#prod16_name1').attr('class', 'hidden');
			}
		});
		
		$('#product_name_ff').change(function() {
			var font = $('#product_name_ff').val();
			var size = '';
			var color = '';
			var fweight = '';
			if ($('#product_name_fs').val() != '' && parseInt($('#product_name_fs').val()) > 0) {
				size = parseInt($('#product_name_fs').val());
			} else {
				size = parseInt($('.product_name').css('font-size'));
			}
			if ($('#product_name_fc').val() != '') {
				color = $('#product_name_fc').val();
			} else {
				color = $('.product_name').css('color');
			}
			if ($('#product_name_fw').val() == 'normal') {
				fweight = 'normal';
			} else {
				fweight = 'bold';
			}
			$('#prod1_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod1_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_name_fw').change(function() {
			var fweight = $('#product_name_fw').val();
			var font = '';
			var size = '';
			var color = '';
			if ($('#product_name_fs').val() != '' && parseInt($('#product_name_fs').val()) > 0) {
				size = parseInt($('#product_name_fs').val());
			} else {
				size = parseInt($('.product_name').css('font-size'));
			}
			if ($('#product_name_fc').val() != '') {
				color = $('#product_name_fc').val();
			} else {
				color = $('.product_name').css('color');
			}
			if ($('#product_name_ff').val() != 'none') {
				font = $('#product_name_ff').val();
			} else {
				font = $('.product_name').css('font-family');
			}
			$('#prod1_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod1_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_name_fs').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_name_fs').val() != '' && parseInt($('#product_name_fs').val()) > 1) {
					size = parseInt($('#product_name_fs').val());
				} else {
					size = parseInt($('.product_name').css('font-size'));
				}
				if ($('#product_name_ff').val() != 'none') {
					font = $('#product_name_ff').val();
				} else {
					font = $('.product_name').css('font-family');
				}
				if ($('#product_name_fc').val() != '') {
					color = $('#product_name_fc').val();
				} else {
					color = $('.product_name').css('color');
				}
				if ($('#product_name_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod1_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_name_fs').select();
			}
		});

		$('#product_name_fc').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_name_fc').val() != '') {
					color = $('#product_name_fc').val();
				} else {
					color = $('.product_name').css('color');
				}
				if ($('#product_name_fs').val() != '' && parseInt($('#product_name_fs').val()) > 1) {
					size = parseInt($('#product_name_fs').val());
				} else {
					size = parseInt($('.product_name').css('font-size'));
				}
				if ($('#product_name_ff').val() != 'none') {
					font = $('#product_name_ff').val();
				} else {
					font = $('.product_name').css('font-family');
				}
				if ($('#product_name_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod1_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_name1').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_name2').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_name_fc').select();
			}
		});
		
		$('#product_price_ff').change(function() {
			var font = $('#product_price_ff').val();
			var size = '';
			var color = '';
			var fweight = '';
			if ($('#product_price_fs').val() != '' && parseInt($('#product_price_fs').val()) > 0) {
				size = parseInt($('#product_price_fs').val());
			} else {
				size = parseInt($('.product_price').css('font-size'));
			}
			if ($('#product_price_fc').val() != '') {
				color = $('#product_price_fc').val();
			} else {
				color = $('.product_price').css('color');
			}
			if ($('#product_price_fw').val() == 'normal') {
				fweight = 'normal';
			} else {
				fweight = 'bold';
			}
			$('#prod1_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_price_fw').change(function() {
			var fweight = $('#product_price_fw').val();
			var font = '';
			var size = '';
			var color = '';
			if ($('#product_price_fs').val() != '' && parseInt($('#product_price_fs').val()) > 0) {
				size = parseInt($('#product_price_fs').val());
			} else {
				size = parseInt($('.product_price').css('font-size'));
			}
			if ($('#product_price_fc').val() != '') {
				color = $('#product_price_fc').val();
			} else {
				color = $('.product_price').css('color');
			}
			if ($('#product_price_ff').val() != 'none') {
				font = $('#product_price_ff').val();
			} else {
				font = $('.product_price').css('font-family');
			}
			$('#prod1_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_price_fs').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_price_fs').val() != '' && parseInt($('#product_price_fs').val()) > 1) {
					size = parseInt($('#product_price_fs').val());
				} else {
					size = parseInt($('.product_price').css('font-size'));
				}
				if ($('#product_price_ff').val() != 'none') {
					font = $('#product_price_ff').val();
				} else {
					font = $('.product_price').css('font-family');
				}
				if ($('#product_price_fc').val() != '') {
					color = $('#product_price_fc').val();
				} else {
					color = $('.product_price').css('color');
				}
				if ($('#product_price_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_price_fs').select();
			}
		});

		$('#product_price_fc').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_price_fc').val() != '') {
					color = $('#product_price_fc').val();
				} else {
					color = $('.product_price').css('color');
				}
				if ($('#product_price_fs').val() != '' && parseInt($('#product_price_fs').val()) > 1) {
					size = parseInt($('#product_price_fs').val());
				} else {
					size = parseInt($('.product_price').css('font-size'));
				}
				if ($('#product_price_ff').val() != 'none') {
					font = $('#product_price_ff').val();
				} else {
					font = $('.product_price').css('font-family');
				}
				if ($('#product_price_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_price').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_price_fc').select();
			}
		});

		$('#product_special_ff').change(function() {
			var font = $('#product_special_ff').val();
			var size = '';
			var color = '';
			var fweight = '';
			if ($('#product_special_fs').val() != '' && parseInt($('#product_special_fs').val()) > 0) {
				size = parseInt($('#product_special_fs').val());
			} else {
				size = parseInt($('.product_special').css('font-size'));
			}
			if ($('#product_special_fc').val() != '') {
				color = $('#product_special_fc').val();
			} else {
				color = $('.product_special').css('color');
			}
			if ($('#product_special_fw').val() == 'normal') {
				fweight = 'normal';
			} else {
				fweight = 'bold';
			}
			$('#prod1_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_special_fw').change(function() {
			var fweight = $('#product_special_fw').val();
			var font = '';
			var size = '';
			var color = '';
			if ($('#product_special_fs').val() != '' && parseInt($('#product_special_fs').val()) > 0) {
				size = parseInt($('#product_special_fs').val());
			} else {
				size = parseInt($('.product_special').css('font-size'));
			}
			if ($('#product_special_fc').val() != '') {
				color = $('#product_special_fc').val();
			} else {
				color = $('.product_special').css('color');
			}
			if ($('#product_special_ff').val() != 'none') {
				font = $('#product_special_ff').val();
			} else {
				font = $('.product_special').css('font-family');
			}
			$('#prod1_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_special_fs').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_special_fs').val() != '' && parseInt($('#product_special_fs').val()) > 1) {
					size = parseInt($('#product_special_fs').val());
				} else {
					size = parseInt($('.product_special').css('font-size'));
				}
				if ($('#product_special_ff').val() != 'none') {
					font = $('#product_special_ff').val();
				} else {
					font = $('.product_special').css('font-family');
				}
				if ($('#product_special_fc').val() != '') {
					color = $('#product_special_fc').val();
				} else {
					color = $('.product_special').css('color');
				}
				if ($('#product_special_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_special_fs').select();
			}
		});

		$('#product_special_fc').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_special_fc').val() != '') {
					color = $('#product_special_fc').val();
				} else {
					color = $('.product_special').css('color');
				}
				if ($('#product_special_fs').val() != '' && parseInt($('#product_special_fs').val()) > 1) {
					size = parseInt($('#product_special_fs').val());
				} else {
					size = parseInt($('.product_special').css('font-size'));
				}
				if ($('#product_special_ff').val() != 'none') {
					font = $('#product_special_ff').val();
				} else {
					font = $('.product_special').css('font-family');
				}
				if ($('#product_special_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_special').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_special_fc').select();
			}
		});
		
		$('#product_text_ff').change(function() {
			var font = $('#product_text_ff').val();
			var size = '';
			var color = '';
			var fweight = '';
			if ($('#product_text_fs').val() != '' && parseInt($('#product_text_fs').val()) > 0) {
				size = parseInt($('#product_text_fs').val());
			} else {
				size = parseInt($('.product_text').css('font-size'));
			}
			if ($('#product_text_fc').val() != '') {
				color = $('#product_text_fc').val();
			} else {
				color = $('.product_text').css('color');
			}
			if ($('#product_text_fw').val() == 'normal') {
				fweight = 'normal';
			} else {
				fweight = 'bold';
			}
			$('#prod1_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_text_fw').change(function() {
			var font = '';
			var size = '';
			var color = '';
			var fweight = $('#product_text_fw').val();
			if ($('#product_text_fs').val() != '' && parseInt($('#product_text_fs').val()) > 0) {
				size = parseInt($('#product_text_fs').val());
			} else {
				size = parseInt($('.product_text').css('font-size'));
			}
			if ($('#product_text_ff').val() != 'none') {
				font = $('#product_text_ff').val();
			} else {
				font = $('.product_text').css('font-family');
			}
			if ($('#product_text_fc').val() != '') {
				color = $('#product_text_fc').val();
			} else {
				color = $('.product_text').css('color');
			}
			$('#prod1_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod2_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod3_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod4_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod5_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod6_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod7_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod8_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod9_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod10_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod11_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod12_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod13_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod14_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod15_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			$('#prod16_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
		});

		$('#product_text_fs').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_text_fs').val() != '' && parseInt($('#product_text_fs').val()) > 1) {
					size = parseInt($('#product_text_fs').val());
				} else {
					size = parseInt($('.product_text').css('font-size'));
				}
				if ($('#product_text_ff').val() != 'none') {
					font = $('#product_text_ff').val();
				} else {
					font = $('.product_text').css('font-family');
				}
				if ($('#product_text_fc').val() != '') {
					color = $('#product_text_fc').val();
				} else {
					color = $('.product_text').css('color');
				}
				if ($('#product_text_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_text_fs').select();
			}
		});

		$('#product_text_fc').live({
			keyup: function() {
				var font = '';
				var size = '';
				var color = '';
				var fweight = '';
				if ($('#product_text_fc').val() != '') {
					color = $('#product_text_fc').val();
				} else {
					color = $('.product_text').css('color');
				}
				if ($('#product_text_fs').val() != '' && parseInt($('#product_text_fs').val()) > 1) {
					size = parseInt($('#product_text_fs').val());
				} else {
					size = parseInt($('.product_text').css('font-size'));
				}
				if ($('#product_text_ff').val() != 'none') {
					font = $('#product_text_ff').val();
				} else {
					font = $('.product_text').css('font-family');
				}
				if ($('#product_text_fw').val() == 'normal') {
					fweight = 'normal';
				} else {
					fweight = 'bold';
				}
				$('#prod1_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod2_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod3_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod4_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod5_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod6_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod7_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod8_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod9_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod10_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod11_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod12_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod13_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod14_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod15_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
				$('#prod16_text').attr('style', 'font-weight: ' + fweight + '; font-family: ' + font + '; font-size: ' + size + 'px; color: ' + color + ';');
			},
			focus: function() {
				$('#product_text_fc').select();
			}
		});
/* END JAVASCRIPT for the products section */

		$('#newsletter').click(function() {
			if ($('#newsletter').attr('checked')) {
				$('#customers').attr('checked', false);
			}
		});
		
		$('#customers').click(function() {
			if ($('#customers').attr('checked')) {
				$('#newsletter').attr('checked', false);
			}
		});
		
	});
